home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_objc.idb / usr / freeware / include / ppi / mivarargs.h.z / mivarargs.h
Encoding:
C/C++ Source or Header  |  1999-07-16  |  887 b   |  45 lines

  1.  
  2. /*
  3.  * Portable Object Compiler (c) 1997 by Stes & Lerman.
  4.  * All Rights Reserved.
  5.  *
  6.  * Header file for compatibility.
  7.  * Enabled by -ppi option of objc.
  8.  */
  9.  
  10. #ifndef _ARRAYH_
  11. #define _ARRAYH_
  12.  
  13. typedef unsigned char *ADDR; /* used in ICpak201 */
  14.  
  15. #ifndef USE_STDARG
  16. #define USE_STDARG
  17. #endif
  18.  
  19. /* these should maybe go into objcrt.h */
  20.  
  21. #if defined(USE_STDARG)
  22. # include <stdarg.h>
  23. # define VA_START(ap,larg) va_start(ap,larg)
  24. #else
  25. # include <varargs.h>
  26. # define VA_START(ap,larg) va_start(ap)
  27. #endif /* USE_STDARG */
  28.  
  29. # define _VA_CHAR       char
  30. # define _VA_SHORT      short
  31. # define _VA_SHORT_PTR  short*
  32. # define _VA_CHAR_PTR   char*
  33. # define _VA_INT        int
  34. # define _VA_INT_PTR    int*
  35. # define _VA_LONG       long
  36. # define _VA_LONG_PTR   long*
  37. # define _VA_ID         id
  38. # define _VA_ID_PTR     id*
  39. # define _VA_DOUBLE     double
  40.  
  41. #include "objpak.h"
  42.  
  43. #endif /* _ARRAYH_ */
  44.  
  45.